<?php

namespace Luka\StoreBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Luka\StoreBundle\Entity\Contractservice
 *
 * @ORM\Table(name="ContractService")
 * @ORM\Entity
 */
class Contractservice
{
    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var Service
     *
     * @ORM\ManyToOne(targetEntity="Service")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="service_id", referencedColumnName="id")
     * })
     */
    private $service;

    /**
     * @var Contract
     *
     * @ORM\ManyToOne(targetEntity="Contract")
     * @ORM\JoinColumns({
     *   @ORM\JoinColumn(name="contract_id", referencedColumnName="id")
     * })
     */
    private $contract;



    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set service
     *
     * @param Luka\StoreBundle\Entity\Service $service
     */
    public function setService(\Luka\StoreBundle\Entity\Service $service)
    {
        $this->service = $service;
    }

    /**
     * Get service
     *
     * @return Luka\StoreBundle\Entity\Service 
     */
    public function getService()
    {
        return $this->service;
    }

    /**
     * Set contract
     *
     * @param Luka\StoreBundle\Entity\Contract $contract
     */
    public function setContract(\Luka\StoreBundle\Entity\Contract $contract)
    {
        $this->contract = $contract;
    }

    /**
     * Get contract
     *
     * @return Luka\StoreBundle\Entity\Contract 
     */
    public function getContract()
    {
        return $this->contract;
    }
}